<template>
    <div class="titles">
        <div class="fl">
            <img src="@img/erjixiaobiaoti.png" alt="" />
            <span>{{ props.text }}</span>
        </div>
        <div class="fr">
            <slot></slot>
        </div>
    </div>
</template>

<script lang="ts" setup>
interface Props {
    /** 标题文案 */
    text: string;
}
const props = withDefaults(defineProps<Props>(), {
    text: ''
});
</script>

<style lang="scss" scoped>
.titles {
    display: flex;
    align-items: center;
    @include fontCustomStyle();
    display: flex;
    align-items: center;
    justify-content: space-between;
    .fl {
        display: flex;
        align-items: center;
        span {
            @include pmzd();
            letter-spacing: 2px;
        }
        img {
            width: 14px;
            height: 15px;
            margin-right: 6px;
        }
    }
}
</style>
